package com.lnking.lnkingplace.model.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.lnking.starter.mybatis.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author sn
 * @since 2022-09-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="InspectResult对象", description="")
public class InspectResult extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "检查的场所对应整改id")
    private String rectificationId;

    @ApiModelProperty(value = "检查类型")
    private String inspectType;

    @ApiModelProperty(value = "检查内容")
    private String inspectContent;

    @ApiModelProperty(value = "隐患情况")
    private String hiddenDanger;

    @ApiModelProperty(value = "整改措施")
    private String rectificationMeasures;

    @ApiModelProperty(value = "选择")
    private String status;

    @ApiModelProperty(value = "整改内容")
    private String rectificationContent;

    @ApiModelProperty(value = "整改内容")
    private String rectificationPhotos;

    @ApiModelProperty(value = "复查逻辑场所确认")
    private String placeContent;

    @ApiModelProperty(value = "场所整改内容")
    private String placeText;

    @ApiModelProperty(value = "场所整改照片")
    private String placePhotos;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "场所整改时间")
    private LocalDateTime placeTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "时间")
    private LocalDateTime time;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    private String delFlag;
}
